package com.example.mycarcalling.dao;

import com.example.mycarcalling.bean.Order;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface OrderMapper {
    int deleteByPrimaryKey(Long orderId);

    int insert(Order record);

    int insertSelective(Order record);

    Order selectByPrimaryKey(Long orderId);

    int updateByPrimaryKeySelective(Order record);

    int updateByPrimaryKey(Order record);

    Order selectOrderByNavigationId(Long navigationId);

    Order selectOrdersOnDriving(Long driverUserid);

    List<Order> selectOrdersWithCompeting(Long driverUserid);

    Order selectPassengerOrderOnDriving(Long userId);
}